//
//  UIViewController+FCswizzling.h
//  辅城
//
//  Created by WJC on 2017/6/27.
//  Copyright © 2017年 吴 剑川. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, companyIdendity) {
    companyIdendityPersonal,//个人
    companyIdendityUncerty,//未认证
    companyIdendityBusiness,//商户
    companyIdendityCompany,//企业
     companyIdendityIndividual,//个体商户
    companyIdenditycerting,//审核中
};
typedef NS_ENUM(NSInteger, empIdendity) {
    empIdendityPersonal,//个人
    empIdendityCompanyOwner,//企业所有人
    empIdendityCompanyEmployer,//企业员工
    empIdendityAdmin,//管理员(只有权限认证的时候有用)
};
struct currentIdendity {
    companyIdendity currentCompany;
    empIdendity currentEmployee;
};
@class FCEmployeeModel;
@interface UIViewController (FCswizzling)
-(void)showNaviWithLogntitude:(double)longtitude andLatitude:(double)Latitude;

/**
 判断urlschema是否有app可跳转

 @param urlSchema 唯一appschema
 @param skip 是否跳转(为yes代表手机有装APP,此时不做跳转app动作)
 @param skipUrl 如果可跳转,跳转的url
 @param alertTitle 弹窗头标题
 @param alertDetail 弹窗内容
 @return 返回是否可跳转
 */
-(bool)judgeAppCanOpenSchema:(NSString*)urlSchema andimmediatelySkip:(BOOL)skip andSkipUrl:(NSString *)skipUrl andAlertTitle:(NSString*)alertTitle andAlertDetail:(NSString*)alertDetail;
-(void)refreshWorkDataWithSel:(SEL)select;
/**
 网址跳转

 @param urlStr 网址
 */
-(void)scanfQRCodeWithURLStr:(NSString*)urlStr andReturnBlock:(void (^)(FCEmployeeModel *))success ;


/**
//检测对象是否存在该属性

 @param verifyPropertyName 方法名
 */
- (BOOL)checkIsExistPropertyWithverifyPropertyName:(NSString *)verifyPropertyName;

/**
 判断当前认证状态

 @param notice 是否弹窗提示(创建,认证,值针对企业创建/认证弹窗)
 @return 认证身份(企业身份,)
 */
-(struct currentIdendity)getCurrentIdendityWithAlertNotice:(BOOL)notice;
@end
